Fixing the Bertin example to use the new Stats transform