done refactoring example