Exercise 7.6 complete