problem 5 revised