Defined method to push new students into array