Client Sample code