finished problem 3 and 7
finished problem 10