add samples for class method