Finishing Chapter 1 exercises