General and Statistical Thermodynamics