Different approach for attributes and inheritance