During the Song dynasty, Emperor Renzong of Song founded a new Taixue at Kaifeng with 200 students enrolled. Emperor Shenzong of Song (r. 1067-1085) raised the number of students to 2,400. He also implemented the "three-colleges law" ("sanshefa"三舍法) in 1079, which divided the Taixue into three colleges. Under the three-colleges law, students first attended the Outer College, then the Inner College, and finally the Superior College. One of the aims of the three-colleges was to provide a more balanced education for students and to de-emphasize Confucian learning. Students were taught in only one of the Confucian classics, depending on the college, as well as arithmetics and medicine. Students of the Outer College who passed a public and institutional examination were allowed to enter the Inner College. At the Inner College there were two exams over a two year period on which the students were graded. Those who achieved the superior grade on both exams were directly appointed to office equal to that of a metropolitan exam graduate. Those who achieved an excellent grade on one exam but slightly worse on the other could still be considered for promotion, and having a good grade in one exam but mediocre in another still awarded merit equal to that of a provincial exam graduate.