solved problem 315