Example code to generate results from paper