the firends class and chat