More exercises from chapter 7