Completed Chapter 7 exercises