Generate sample programs using by-reference parameter passing and step through their execution