add dmitry.baev solution