Vector class implemented