Thermodynamics and Statistical Mechanics:An Integrated Approach