working generated base classes for generated objects