finish purpose.py