Convert vector functions to methods, part 1