examples: add an example for estimating the pi