How A Transformer Works