Exercises from chapter 10