dip_demo using an example