added method WriteMessage() in ConsoleWriter

writes message to the console