Changed Factory.CreatObject to accept a Type param instead of string