added pretty print directive to examples