Session 6 lab code (implementing CalculatorController)