Refactoring
Refactoring: from JS to CS (it's funny!)