The electoral success of Zohran Mamdani proves that a class-based message can win.