add rough implementation of Object.assign