Finished Chapter 7 exercises