Thermostatics and Thermodynamics