How did social structure lead to discontent in Latin America?