Problem 2 Solution 3, Problem 3 Solution 1