- added working example with trait