copy chat example into chat-cluster
implemented chat example using cluster