Refactor calculator to use method_missing