Implement the calculator and its steps