Exercise 6.8 complete