establish model base class