Schooling has the function of promoting nationalism- for instance, by making all schoolchildren say the pledge of allegiance before class. It also promotes a sense of affinity between members of the same society, by grouping them together in cohorts from a young age, thus establishing them among their peers.