Refactored to use a StudentDirectory class