Update filter demo

Update filter demo to show using a function callback to perform the filtering.