missing parts for bootstrap the examples
first example (roughly) translated to Lua