refactoring createStudent