A survey of thermodynamics