add sample code 2