In short
Walter Mischel and Ebbe Ebbesen ran the first study of what became known as the marshmallow test. They expected that seeing the reward would help children wait — the opposite was true: children waited longest when the rewards were out of sight.