Added model classes for handling messages and users of chat