completing chapter 6 exercises