Lab4 by Dmitriy Gorokhov