Add inserting of attributes to class