rewrite the message part

rebuilt the message part and built a model that is to check the numbers
of the new messages