Social structure and slavery