Exercises from Chapter 5.