Create a ModelFactory class to handle the creation of the object graph