Thermodynamics of natural systems