code: public Vector add(Vector b) {
          if ((b == null) || (size != b.size)) return null;
  
          int i;
          Vector result = new Vector(size);
          for (i = 0; i < size; i++)
              result.vector[i] = vector[i] + b.vector[i];
          return result;
      }
docs: Addition from two vectors