[WIP] Functional examples

Oh, i just realized you copied from somewhere else rather than this being new code.