updated vector class