changed print_footer to take array of students