a working demonstration.

still possible to make simpler and avoid hacky hacks