updated #6 for workshop/statistics

doesn't quite work yet - just pushing it up for MikeJ to take a look.