Rearrange classes.