added refactoring example