The Code for Fun enrichment classes for all Primary 4 to 6 students from next year will be a 10-hour programme conducted by the Ministry of Education and the Infocomm Media Development Authority.