The earliest and most famous example is Code of Hammurabi which set the different punishment and compensation, according to the different class/group of victims and perpetrators.
这一最早的著名例子是汉谟拉比法典，其根据被害人及罪犯所述的不同阶层和团体而规定不同类型的惩罚和补偿方式。