Added client example code for reference