Updating example for new interface