model of controller and view (not finished)