Affinity maturation and class switching