Updated examples to match new interface