Exercises for chapter 7