Exercise 3 from Chapter 19