add notes on pass-by-reference and pass-by-value, + code examples