Which form of writing extended before the invention of paper?