Added client code snippets from tutorial