finished problem 16