add sample source of an class