Changed students to global variable