Finished Chapter 3 exercises