Exercise 1.7 complete