adding rmi variable to Replicas class