added client code example