add in selection and attribute retreival for test datasource. move generalizing logic to part 5 final tutorial