a simple calculator with Object-Oriented Method
and Factory pattern.