Code examples based on Refactoring