add custom delegate sample