added cart2sphere class