Updated "ModelFactory" to take "IModel" as param.

Updated "ModelFactory" to take "IModel" as parameter.