finished problem 9
finished problem 10, (kinda cheated...)