demonstrating refactoring