Changed example to write a whole page.