starting pattern.py