Solved the 4th problem