diff calculation seperated into own class and put under test