Start Exercise 2 in Chapter 9 of Think Python