created the sphere struct, with intersection function