commit changes to chapter 4 made when completing homework 2