combining logic gates - Search