Exercise 6.7 complete