constructor for base class