Here's exercise 10.py