Answer of the Programming Assignment 2