Finished the exercises for Chapter 7