The chemistry of baking cookies