Hey @mastart
Adrian is correct.
If you parent (connected) the def bone to the IN bone, this will automatically sort out the bending.
The rest looks correct.
Of course, they are other ways to achieve this same functionality, but that’s the easiest solution in this case.
Let us know if you are still stuck.