Completed the Programming Assignment 2