finished problem 27