adding the pics model and pic controller and the loop in the view