finishing up implementation of vector