How do you change the following sentence to the past tense?: He will have written the book by then.