Thermodynamics of Alloys