finished base of vector class