Sample code for refactoring basics session