add custom delegate sample 2