copy vector method (unfinished)