Problem 1 provided answer.
Problem 2 provided answer
Problem 3
Problem 3 provided answer.