refactoring en teacher