Updated problem 3.