Lab#2 by Aleksey Kostrov