logic gate sample - Search