finishing exercises from chapter 6