Adding the student details to a hash