add vector other functions' demo