update problem 3