Stav dette: Elements of thermodynamics