slightly reworked table3.lua