A small java program that generates groups from a collection of people