add a message entity and use it in the client

constructor does not return a value.