I am wondering if there is any chance we can use function closures here, like JavaScript does, and what is the formal way to do it?