Generic class and generic method.