Code for assignment 2

Code for Assignment 2 problem 1