The shuyuan was a distinctive educational institution of ancient China, arising in the Tang and flourishing in the Song. It grew from private libraries and book rooms into centres of lecturing, nominally outside the state schools and paired with the examinations: students read there for examination degrees, and great scholars lectured there to transmit the Way. After the Qingli school movement of the Northern Song, state schools and academies both flourished, and the Four Great Academies — White Deer Grotto, Yuelu, Songyang and Yingtian — were the most famous: Zhu Xi restored White Deer Grotto and wrote its manifesto, setting the order of learning as "study widely, inquire carefully, think deeply, discriminate clearly, practise earnestly," a model for later academies; Yuelu's "Chu alone has talent, and here it is at its height" and the Zhu–Zhang lectures became famous. Academy lectures debated freely, and Wang Yangming's followers spread lecture meetings across the southeast, the Taizhou school even taking woodcutters and potters as disciples. In Yuan, Ming and Qing the academies became increasingly official, and Qing academies mostly trained for the eight-legged essay; in 1901 the late Qing reforms turned academies into schools, the millennium-old tradition transforming into modern education.