Solution to 1st assignment.
Solution for 2nd assignment.