Completed p2 in LUA