beginnings of some functional examples (not quite working yet)
got examples working
got a reasonable advanced example working