Coded the 'Create student' function