Put students into an array and optimised printing students names