Lab1 by Dmitriy Gorokhov