Table with colors and refactoring