Elements of Classical and Statistical Thermodynamics