Answer:
Self-categorization
Explanation:
Based on the scenario being described within the question it can be said that this is an example of Self-categorization theory. This is a theory that describes the different circumstances where an individual will perceive various individuals as a group, as well as how they are perceived. Which is what Gregory is doing by dividing the student population into groups and judging them based on different aspects.