Example of application with RMI and P2P