Setting up dojo for any polymorphism approach