Improved grouping in schools