Added base Model and Model.define