resubmission of homework assignment #3