print table on console correctly