Exercise 2.21 and 2.22.