Refactoring examples