Removed deprecated calls in examples.

Closes #193.