A sample chat program using Java RMI