update for problem 10