Added function to print table