Principles Of Classical Thermodynamics: Applied To Materials Science