Exercises from chapter 6