Hw4 solutions