working example with a few pages