Added students to array and used array functions