Principles of Crafting Quality Endings for Fictional Narratives