created array of students
combined codes