Completed ex35.py