I added another line of test for the add function but I still get outofbounds errors...