clear() method has been added. Reason: we need a way to remove all attributes.