changed member function calls to relect vector.cpp declaration
changed member function declaration to proper usage