Using lua to do some basic things