Added generic example for class