adding vector and template example