completed HW3 solutions + erratum