Task 1: added difference-function