assignment 2
Solution to mandatory assignment