Text this: A Model of Epigenetic Inheritance Accounts for Unexpected Adaptation to Unforeseen Challenges