Update problem 3