lesson1 step1 refactoring