To understand the event "Ted was dying.  Ted wrote a will.", it is important to know that a will is a document that can express wishes after someone is dead