Chat implemented with RMI