Updating example to use the new vector API