The inventor of chocolate chip cookies sold the idea to Nestle in return for a lifetime supply of chocolate.