finished the refactoring lesson