modify to update vector-add example