minor revisions, better example code.