ported ed kmett's simple example, though it's compiling, it's not running just yet.