Homework 7 part2(CalculatorBrain)