problem 2 revised