Solved the problem 4