hw 4 solutions