changed puts by print
displaying all students with numeric index