Completed Chapter 1 exercises