added ModelFactory to convert xml to a model