use vector class