Moved example to separate file

Example file needs editng and will not compile.  It's just to
demonstrate how the class can be used.