made base class for model