Added index functionality to the array to output a numbered list of students