Created 'outputMsg()' function