upgrade class