Chemical Thermodynamics I: Thermodynamics and Statistical Mechanics