three types of patterns - Search