Exercise 6.5 complete