Initial class for calculating the sum of resources.