Thermodynamics and Chemical Reactions