Shang Yang, of the Ji surname and Gongsun clan, personal name Yang, a descendant of the ducal house of the small state of Wey, was a statesman of the Warring States period and a leading figure of the Legalist school. Early on he served in the entourage of the Wei chancellor Gongshu Cuo but was not employed by King Hui of Wei; he then carried Li Kui's Canon of Laws into Qin, gained audience through the favorite Jing Jian, and moved Duke Xiao of Qin with his arts of enriching the state and strengthening its arms. In 356 BC he was made Left Chief Steward and directed the first reform; around 350 BC came the second. Its main measures: abolishing the well-field system and opening the boundary paths, recognizing private ownership of land; rewarding farming, weaving and military achievement with ranks conferred by merit, and barring nobles without military merit from the clan register; compiling household registers with mutual-responsibility groups of five and ten; universalizing the county (xian) administration, opening the way for the later commandery-county (junxian) system; and unifying weights and measures. The reforms injured the old aristocracy: when the crown prince broke the law, Shang Yang punished his tutors to establish authority. Qin grew rich and its army strong, laying the foundation for the future unification of the six states by Qin. When Duke Xiao died in 338 BC, Shang Yang was accused of rebellion, defeated and killed, his body torn apart by chariots — yet his laws were kept in force by Qin after his death.