coding #310 adding the Payment class to the controller