My submission to Programming Assignment 2