The first thing you do when you sell your new book is sign a contract with a publisher.