Ratchet claw help

I’m trying to build a ratchet claw but I’m having trouble figure out the system. I know I need to add the flex wheels and ratchet. But how is it supposed to work? How do the arms lock around the pin and cup?