Solved 5th problem