add sample method