vector class implemented