Thermodynamics: Classical to statistical