Commit implementation of the problem 11