Finished chapter 12 exercises