add delegate sample