Moved functions to the setup chunk so that they are available in the beginning of the paper. Added an example that looks as if it has constant variance and does not to motivate the paper.