add a new method attributes.set()