Implement a simple RPC framework