Update message.cpp

Constructor added.