Beta and last version of old task

It's all, what I did before stek. I did't have time to write comments
and replace names of variants.