What is the purpose of the rules of society?