First refactor example
refactored, first example