update for homework3