It may be easier to split the code if we have a class instead of a function. If we have an instance of a class it will be easier to continue calculation if we are not happy with the result.