Classroom composition and pupil achievement : a study of the effects of ability-based classes