A example using Java RMI (Remote Method Invocation)