Completed Chapter 9 exercises