prob 2 in lua