To understand the event "Ted was dying.  Ted wrote a will.", it is important to know that A will is a document that tells people what to do with your stuff after you die.