extending vector class