public static void CalculateAndWriteResults(IInputHandler inputHandler, IOutputHandler outputHandler, IFibonacciCalculator calculator) { var number = inputHandler.GetNumber(); var result = calculator.Calculate(number); outputHandler.Write(result); }