implement iterator/generator over trials, really neat