Changed main method to calculate versus sum