Completed exercises in chapter 5