updated examples for new SDK