fix code in book-the-writer snippet