Closure-based solution
Closure-based solution
Merge pull request #145 from Ghor/master

Lua closure-based solution