add table function to readme