Completed exercises in chapter 6