Бышева - Лабораторная работа #1

@ljaljushkin, @nikkrasn, @bobylkov-f please review
I think you also should check arguments for NULL here.