add a new class to build a summary of trajectories as they are sampled