Add sample code to demo rpc etc.