examples for how to write a simple rpc c/s using haigha