Chapter 3: Coding Attention Mechanisms