Title: Narrative as a formal system