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