Extending and rectracting of rope