put students into array and used students.each to iterate the array.