refactoring demo app