The Dynamical Principles of Storytelling