How cloning works