Add inheritance and make SpaceObject an abstract class