Functions of cases in traditional Chinese law