Add a better transform example

Fixes #1896