starting to work on the pattern checker
put the pattern in a var called pattern