model connected with controller