static void Main(string[] args) { IMathematics mathematics = new Mathematics(); IUserInterface userInterface = new ConsoleUserInterface(); var calculator = new CalculatorService(mathematics, userInterface); calculator.Run(); }