Finished chapter 10 exercises