Assignment 2

The solution is here solution_to_assignment_2.pdf