Doubly-Tuned Transformer Networks: A Tutorial