Exercise 1.46. Chapter 1 completed.