The science behind a muffin and a cupcake