Assignment 2

My solution to assignment 2.