Lab#3 by Aleksey Kostrov