Title: Thermodynamics of materials with memory