End of Chapter 14, Hexagon implementation.