Finish some exercises in chapter 9