Basic structure of models and views