example for use declarations was erroneous

- use declaration inside a class is not allowed (or the text is wrong)
- added another example instead