add sample code & update readme