Social structures and revolution