To understand the event "Ted was dying.  Ted wrote a will.", it is important to know that Ted wants a means to express his wishes after he is dead