What I learned writing a book.