Modify sum.R to be equal to the main example of the sum paper.