example of logic diagram - Search