Differentiate between the function of punishment and the purpose of law according to the Durkheimian and Marxist perspectives

Differentiate between the function of punishment and the purpose of law according to the Durkheimian and Marxist perspectives