add a class to calculate the size of all files