The physics of baking