Completed ex15.py