java generics: example added