adding vector class