Completed the Code for the Programming Assignment 2