Small application of java RMI