Assignment 2 completed

Code added for assignment 2