set up an inheritance structure between geometry and material, and created a class sphere which is a specific geometry type.