In Praise of Loopholes

“Or take David Phillips, a.k.a. “Pudding Guy.â€? When he learned that the Healthy Foods company was offering its customers 1,000 frequent flier miles for every 10 Healthy Foods products purchased, he began searching for the cheapest item they sold; when he learned that Healthy Foods sold individual pudding cups for a quarter apiece, he purchased every one he could find within a 60-mile radius of his home, and even had his local stores order more from their distributors. (If this sounds familiar, it’s because Phillips’s astounding feat of loopholery was incorporated into the film Punch Drunk Love.)
In the end, Phillips wound up with more than 12,000 cups of pudding and 12 million frequent flier miles. He then gave the pudding to his local Salvation Army and wrote off its cost as a charitable donation.”

Link