Added a function which returns the difference as an object