How did class structure, ethnicity, and gender affect urban political affairs? How did class structure, ethnicity, and gender affect urban political affairs?