Added Code and Comments for Programming Assignment 2