cleint example code