problem 8 done
Problem 9 Done
Problem 10