Update lua.m

I'm not using typeclasses properly, need to revise.