Figure 3: Sphere function.