add sample code