By the way, according to your instructions, addVector was only supposed to have two parameters. You really don't need the third parameter since you can obtain the dimension from the first two parameters, and in fact you must do that in order to "make sure that the dimensions are correct".