Lab2 by Dmitriy Gorokhov