Commiting code for Programming Assigment 2