Problem 3 edited