add client sample code