implemented the pid controller and added a screenshot of question h