Completed 9th problem