refactoring directory#add_student