Schooling Roots Shang dynasty to Spring and Autumn period Shang places where noble youths practised archery and ritual, then Western Zhou state and local schools run by officials. Six Arts Curriculum Western Zhou to Warring States period Ritual, music, archery, charioteering, writing and arithmetic: the course that Western Zhou state schools taught to noble youths. Private Academies Spring and Autumn period to present Confucius taught pupils from about thirty without class distinction; Warring States masters followed with schools of their own. Jixia Academy Warring States period A Qi academy founded by the state but run by its scholars, where Mencius, Zou Yan and Xunzi among others came to debate. Imperial Examinations Sui dynasty to late Qing (1905) The Sui chose officials by the jinshi exam and the Northern Song fixed the palace exam, replacing Wei-Jin selection by birth. Tang Six Schools Tang dynasty The Tang Directorate of Education's six schools, among them Law, Calligraphy and Mathematics, plus the Hongwen Academy. Academy Regulations Southern Song to late Qing Zhu Xi rebuilt White Deer Grotto Academy and drew up its regulations, setting the tradition of academy rules. Three Halls System Song dynasty Song students promoted or demoted through outer, inner and upper halls by exam, for a time in local schools too. Primary Education Northern and Southern dynasties to present Rhymed primers such as the Three Character Classic and Thousand Character Classic, teaching children letters, ethics and history. Western Learning Late Ming to early Republic From Matteo Ricci and Euclid's Elements to the Tongwen Guan, Western mathematics and new subjects reached China.