implemented rmi logic and server + client