Problem 10340 solved, all in all