code for challenge.py