add base class of domain object