Add pass-by-ref example and example outputs.