Exercise 1.9 completed