vector function expamples