Created base model class