Use print function properly in examples.