Exercise 1.19 completed