added patternMatching.py