Created a print table function