Exercises for chapter 2