Added instance provider creating type matching constructor argument using inheritance.