added exammple with attribute