finished 16th problem