my solution

My solution for Assignment 2