Exercises for chapter 5