Sample code for interprocess communication