Advanced Classical Thermodynamics