An Introduction to Thermodynamics and Statistical Mechanics