Done exercises from chapter 8 (and fixed chapter 7's exercises)