added ChatBeanClass, refactoring