Adding class generator base class