rpc example - calculator