update for homework 3