finished problem 10