Narrative refers to story structure and devices used in genres. There are linear narratives with a clear beginning, middle, and end, as identified by Aristotle. There are also circular narratives where the beginning and end are the same. Todorov's narrative theory states stories follow an equilibrium-disequilibrium-recognition-resolution-restoration structure. Propp analyzed folktales and identified 8 character roles and 31 functions that advance the story. Barthes identified codes within narratives, including the hermeneutic code of unexplained mysteries, the semantic code of additional meanings, the cultural code of assumed truths, the proairetic code of implied future actions, and the symbolic code of deeper meanings.