Lab#4 by Aleksey Kostrov