Modern Thermodynamics and Statistical Mechanics