First, I figured it out how this works.

Then I haven't got a clue what I'm doing.