Exercises from chapter 3