Otimizing chatClass inline