created base model class