refactored students into an array and created a couple of simple functions