My Version of Programming Assignment 2