Removed pub from to_string in examples.

Fixes #3