Attach tag to object

Attaches a tag to an object.