refactoring teacher specs