added a program demonstrating java generics