sample code append