Краснояров - Лабораторная работа #3

it would be better to create test before implementing this logic