completed code to show that the new page is statistically better than the old page