Add rope sample code