How do cables retract?

Can you answer this question?