accept input from the terminal for the students array