Transformation of planets class