finished problem 12