Add student list into an array and print with a block