Add selection and segregator task, clean up examples