FindPattern is encapsulated in a a method