problem 3 revised