Added the class SpaceshipFactory