update example and add vec