added final example from rounding post
some more debug statements