Solved 4th problem