Algorithm for post-processing
doing a slightly different example