Refactored Calculator class according to DRY principle.
Refactored Calculator a bit further with polymorphism.