swap class