Resubmission of homework 1