Client-server application using RMI