Branches of thermodynamics