The theory of social institutions