Exercises from chapter 12