Solved problem 6
Finished problem 7-10