Chapter 3 Exercise 2 BasicCalculator.