Programming a dialogue teaching situation