 Also in 637, a major revision of the laws, led by Fang, was completed, and the penal laws were said to be far more lenient than the Sui penal code, on which Fang's revision was based, with 500 statutory sections and 20 grades of penalty.Also that year, the code of rites, authored by him and Wei Zheng, was also completed.In 638, Emperor Taizong, celebrating the birth of a grandson, held a feast for imperial officials, at which he made the comment