Add simple example, and roll back to 'ref' syntax for backcompat