add sample in class