Adding base model/view code