ADD: add rpc implementation and an echo example