Finished some chapter 9 exercises