HW4 resubmission