My version of the Programming Assignment 2