I’m not sure what went wrong.
I managed to solve the problem on my own, and I finally understand why it works!