creating base class