My codes for Sphere