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