finished 8th problem