support for creating multiple classes with a common base class at once