Completed chapter 3. Added guard and spork for automated testing.