Added consoleMessage method

Code review