Title: Thermodynamics of Materials with Memory