new branch for level 2
Refactor rope cod