Completed problem 9
Completed problem 10