Solved problem 8.
Solved problem 9
Solved problem 10