Exercise 6.2 complete