finished the factory and the StubData classes