rewrite some of the lua examples on the homepage