Completed client code