Explain how to write an RPC-oriented service.