The principal may be using something like this:
http://www.ericdigests.org/pre-927/grouping.htm

It's pretty old (1986 research).