Rev list

Replaces #9 (exactly the same code with a couple of formatting changes!).