some updated code
added math function sphere()