Some conceptual code based on the pluginaweek sample.