Foundations of the subject with application to the equilibrium thermodynamics of gases, liquids, and solids.