Moved calculateResult function into separate module.