Elements of Thermodynamics