Fix examples to match new API