add sample codes for 'new' & 'delete'