Refactoring Replace Conditional With Polymorphism

Refactoring Replace Conditional With Polymorphism