split table format from ConsoleWriter into a dedicated TableFormat class which implements the FormatInterface