edit sample code