My Submission to Programming Assignment 2