Create pattern_recognition.py