Look to Viktor's solution - it will help to solve it :D