add rmi sample