A simple solution to environments in lua