You don't need the instance variable here, looping through an array of 30 students isn't going to be very expensive.