generics inside classes