adding the pics model and pic controller and the loop