Samo names of variable were changed according to Vladimir's comments.