changing the way students and teachers are defined, using flags now