Pulls/update examples

Update examples to use the new API