add sample_code