Refactored to print student number using each_with_index