The recommendation (chaju) and nine-rank systems were the successive roads to office under the Han and the Wei-Jin age. Recommendation began under Emperor Wen and was regularized under Wu: the commanderies yearly recommended filial-and-incorrupt and flourishing-talent candidates, besides the various categories of the worthy and upright and those versed in the classics — examined locally, tested and appointed by the court: 'village and district selection' made institution, men taken for virtue and learning — Dong Zhongshu and Gongsun Hong both rose this way; under the Eastern Han the 'great houses of successive generations' and their clients' networks formed, selection falling to the great clans — 'recommended as flourishing talent, cannot read; recommended as filial, lives apart from his father' mocked the gap between name and fact. In the first year of Huangchu (220) Cao Pi of Cao Wei, on Chen Qun's counsel, instituted the nine ranks: rectors of states and commanderies grading men into nine classes by ability and conduct for appointment — a cure for recommendation's ills that turned to the disease of pedigree: rectors drawn from the great houses, ranks computed by family standing, 'no poor man in the upper grades, no powerless man in the lower' — aristocratic politics taking root, run through the Wei, Jin and Northern and Southern dynasties for three hundred years. Emperor Wen of Sui abolished the nine ranks and Yangdi created the jinshi degree — the examinations replacing village selection and rectorial grading, opening the commoner's road into office: the two systems are the hinge-chapters of Chinese officialdom's history.