Implemented getEducatorList function for educator