Refactoring Problem4