separate examples by functions
update slides and sample code