make plotClass base class