hw04 solutions