Learning to construct sequential events Code for simulations in Chapter Three of my thesis. Tested with transformers 4.35.0.dev0.