Social Evolution In Class-Structured Populations