assignment 3 solutions