add code sample

How about this example?

The history does not seem to work.

-rif