Finished the chapter 9 exercises