Update example to handle new response format