add data and base class