Exercises for chapter 6