Version-1 of the Programming Assignment-2.