function z = myAdd(x, y, varargin)

    z = x + y;
    
    if nargin >= 5
        error("You cannot do this: too many arguments.");
    end
    
    for i = 1 : nargin - 2
        z = z + varargin{i};
    end

end