Exercises from chapter 9