This is Assignment 2 from the MOOC Crafting Quality Code on coursera.org