Allocating subjects to year groups (4)