Measuring pupil achievement and aptitude