start of coach.py