Refactoring sample