Discuss the Social functions of law.