Teaching preserves class