Statistical Mechanics: From Thermodynamics to the Renormalization Group