A child learns that whenever he eats all of his dinner he gets a cookie for dessert. What best explains this type of learning?