Account for negative numbers in add(…) function.