Here is the code you want to use:
You can find out more about objects here.
Alternatively, if some students may have the same name, you can add a random 4 digit to the end like this:
As you can see, here many people named Bob have entered their details, and each one has a unique ID at the end:
Hopefully this helped you out 
If so, you can mark this post as solved, if not I would be more than happy to assist you further.


