Added a solution to assignment 3.