Made the sample method const. No reason not to.