Merge class attributes