finished problem 1.16