Exercise 7.4 complete