Stav dette: The mathematics of foam