Thermodynamics calculations example