Thermodynamics and Free Energy