Finished Chapter 9 exercises