During the Southern Song Dynasty, Zhu Xi rearranged the "Great Learning" and included it in the Four Books, along with the "Doctrine of the Mean", the "Analects" of Confucius and the "Mencius". Zhu Xi separated the "Great Learning", which was originally a chapter in the "Classic of Rites". Zhu Xi organized the book as Jing followed by ten expositions. Zhu Xi was a student of Li Tong. Zhu Xi developed the Chengs' Confucian ideas and drew from Chan Buddhism and Daoism. He adapted some ideas from these competing religions into his form of Confucianism.