update for homework6