Story Design for Learning: Cognitive Principles and Practical Application