Fix up class example.
Add SPAN mehod.
Fix changefn to be called with right context.