Solution of Programming Assignment 2

Solution of the Programming Assignment2.