Added a 'memento' argument to the 'populateModel' method to allow for overriding of what struct to populate with