Table generation (or output) is not quite right yet