The addDifference function works.
Tested in ghci.