Added Sphere class and functions