created Classes for Group and Single Chat