Setup Factory and Base class