Chapter 3: Understanding Attention Mechanisms