More exercises from chapter 3