update for assignment1 problem 3