Solved the 6th problem