Solved problem 3.
Solved problem 4.