Solved problem 313