In an ideal world there would be classes catering to all levels of ability with less than 1 standard deviation variation in ability within each class. Then, given a range of such classes, the "gifted" ones would simply be the higher level ones. But all the levels would be needed.