Using Calculator class in example