Public methods.  pi() now more like an actual example using new Rcpp-specific class