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