create file for all patterns and move patterns to it
move patterns to app/patterns.py