add another array of tables unit test
more array of tables logic
work on the encoding of groups
add support for encoding of tables