fix math in examples