Solve problems 63,65 using Lua.