Examples of refactoring