Lab3 by Dmitriy Gorokhov