Updating object to model