Confused on how to define the models in views