added `util.assign` method to assign values to objects