post HW6 solutions