table seems to be working, but need more tests
table seems to be working, but need more tests
print table doesn't work, now I just use print
working table code