types of patterns and examples - Search