Copying and pasting object attributes