Finish exercises in chapter 7