generics example fix