Save object attributes