Fundamentals of Classical and Statistical Thermodynamics