Chemical thermodynamics