Finished 7th problem