Problem 3 revised
Problem 4