Added the ConsoleWriter class