Schooling Roots Shang dynasty to Spring and Autumn period Mencius says 'the Yin called it xu' and 'xu means archery'; in the Western Zhou learning lay with the officials, in state and local schools. 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. Teaching for All Spring and Autumn period to present Confucius taught pupils, and Warring States masters followed, each founding a school of his 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.