- Added a function to write colored text to the output