new_model function

Constructor for a base model