example of using client