Refactored the terminal output table classes