Load student list from file, refactored code