Added client code to "basic" sample