created models and one view function