added Function for printing table