code inputs one student into array